<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/admin/global/credituser" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>
  <div class="page">
    <div class="page-hd">
      <h1>{$Think.lang.creditConfig}</h1>
    </div>

    <div class="navbar">
      <ul class="nav">
        <li><a href="{:URL('admin/Global/credit')}">{$Think.lang.creditRule}</a>
        </li>
        <li><a href="{:URL('admin/Global/creditType')}">{$Think.lang.creditType}</a>
        </li>
        <li class="active"><a href="{:URL('admin/Global/creditUser')}">{$Think.lang.creditUser}</a>
        </li>
      </ul>
    </div>

    <div class="form">
      <form method="post" action="{:URL('admin/Global/doCreditUser')}">
        <dl class="kv">
          <dt>{$Think.lang.userId}：</dt>
          <dd>
            <input class="input-text" name="uId" id="uId" type="text">
            <p class="tip">{$Think.lang.creditUserIdRe}</p>
          </dd>
        </dl>
        <dl class="kv">
          <dt>{$Think.lang.userGroup}：</dt>
          <dd>
            <select name="gId">
              <option value="all">{$Think.lang.all}</option>
              <option value="0">{$Think.lang.ordUser}</option>
              <volist id="vo" name="grounlist">
                <option value="{$vo.user_group_id}">{$vo.title}</option>
              </volist>
            </select>
            <p class="tip">{$Think.lang.creditUserGrpRe}</p>
          </dd>
        </dl>
        <dl class="kv">
          <dt>{$Think.lang.userStatus}：</dt>
          <dd>
            <select name="active">
              <option value="all">{$Think.lang.all}</option>
              <option value="0">{$Think.lang.notActive}</option>
              <option value="1">{$Think.lang.active}</option>
            </select>
            <p class="tip">{$Think.lang.userStatusRe}</p>
          </dd>
        </dl>
        <dl class="kv">
          <dt>{$Think.lang.operating}：</dt>
          <dd>
            <input class="radio" type="radio" name="action" value="add" checked />{$Think.lang.incDecr}
            <input class="radio" type="radio" name="action" value="set" />{$Think.lang.set}
            <p class="tip">{$Think.lang.creditUserAddRe}</p>
          </dd>
        </dl>
        <volist name="creditType" id="ct">
          <dl class="kv">
            <dt>{$ct.alias}{$Think.lang.incremental}：</dt>
            <dd>
              <input type="number" class="input-text" name="{$ct.name}" id="{$ct.name}" value="{$credit[$ct['name']]|intval}">
              <p class="tip">{$Think.lang.incrementalRule}</p>
            </dd>
          </dl>
        </volist>

        <div class="actions">
          <input type="submit" class="btn btn-y" value="{$Think.lang.OK}" />
        </div>
      </form>
    </div>

  </div>
</body>

</html>
